package org.onvivals.module.system.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.onvivals.module.system.entity.SysUserRole;
import org.onvivals.module.system.mapper.SysUserRoleMapper;
import org.onvivals.module.system.service.ISysUserRoleService;
import org.springframework.stereotype.Service;
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements ISysUserRoleService{

    @Override
    public void removeByUserId(Long userId) {
        remove(Wrappers.<SysUserRole>lambdaQuery().eq(SysUserRole::getUserId,userId));
    }

}
